package com.huadi.ssm.service;

import com.huadi.ssm.dao.MessageMapper;
import com.huadi.ssm.po.Message;
import com.huadi.ssm.po.MessageExample;

import java.util.List;

public class MessageServiceImpl implements MessageMapper {

    private MessageMapper messageMapper;

    public void setMessageMapper(MessageMapper messageMapper) {
        this.messageMapper = messageMapper;
    }

    @Override
    public long countByExample(MessageExample example) {
        return messageMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(MessageExample example) {
        return messageMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String eventId) {
        return messageMapper.deleteByPrimaryKey(eventId);
    }

    @Override
    public int insert(Message record) {
        return messageMapper.insert(record);
    }

    @Override
    public int insertSelective(Message record) {
        return messageMapper.insertSelective(record);
    }

    @Override
    public List<Message> selectByExample(MessageExample example) {
        return messageMapper.selectByExample(example);
    }

    @Override
    public Message selectByPrimaryKey(String eventId) {
        return messageMapper.selectByPrimaryKey(eventId);
    }

    @Override
    public int updateByExampleSelective(Message record, MessageExample example) {
        return messageMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Message record, MessageExample example) {
        return messageMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Message record) {
        return messageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Message record) {
        return messageMapper.updateByPrimaryKey(record);
    }
}
